package com.jsftoolkit.gen;

import com.jsftoolkit.gen.info.ComponentInfo;
import com.jsftoolkit.gen.writer.ClassWriter;

/**
 * Interfaces for classes that generate class code for a JSF Component using a
 * {@link ClassWriter}.
 * 
 * @author noah
 * 
 * @param <T>
 *            the category of writer this generator can use.
 */
public interface ComponentClassGenerator<T extends ClassWriter> {
	/**
	 * Interpret the component info and output the result with the given writer.
	 * 
	 * @param info
	 * @param writer
	 */
	void generate(ComponentInfo info, T writer);
}
